<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFFunctions.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">HFFunctions.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="_h_f_functions_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_range_wrapper.html">HFRangeWrapper</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An object wrapper for the <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a> type.  <a href="interface_h_f_range_wrapper.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_range_set.html">HFRangeSet</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A set of HFRanges. <a class="el" href="interface_h_f_range_set.html" title="A set of HFRanges. HFRangeSet takes the interpetation that all zero-length ranges are identical...">HFRangeSet</a> takes the interpetation that all zero-length ranges are identical.  <a href="interface_h_f_range_set.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab08435c6a01cfe5cd77158388f22167f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#ab08435c6a01cfe5cd77158388f22167f">HFDEFAULT_FONT</a>&#160;&#160;&#160;(@&quot;Monaco&quot;)</td></tr>
<tr class="separator:ab08435c6a01cfe5cd77158388f22167f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe1c300d17bd4eee18b785b5a57296ac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#afe1c300d17bd4eee18b785b5a57296ac">HFDEFAULT_FONTSIZE</a>&#160;&#160;&#160;((CGFloat)10.)</td></tr>
<tr class="separator:afe1c300d17bd4eee18b785b5a57296ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae371535050d473bf449536855db6af4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#aae371535050d473bf449536855db6af4">HFZeroRange</a>&#160;&#160;&#160;(<a class="el" href="struct_h_f_range.html">HFRange</a>){0, 0}</td></tr>
<tr class="separator:aae371535050d473bf449536855db6af4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a925eaf1edd5e195cc196cc300c13276c"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#a925eaf1edd5e195cc196cc300c13276c">HFStringEncodingIsSupersetOfASCII</a> (NSStringEncoding encoding)</td></tr>
<tr class="separator:a925eaf1edd5e195cc196cc300c13276c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af701c91f3cf2fe151c68e239a40a79a5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#af701c91f3cf2fe151c68e239a40a79a5">HFStringEncodingCharacterLength</a> (NSStringEncoding encoding)</td></tr>
<tr class="separator:af701c91f3cf2fe151c68e239a40a79a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e2340e72af073b5120505b4b0a291b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#aa1e2340e72af073b5120505b4b0a291b">HFDrawShadow</a> (CGContextRef context, NSRect rect, CGFloat size, NSRectEdge rectEdge, BOOL active, NSRect clip)</td></tr>
<tr class="separator:aa1e2340e72af073b5120505b4b0a291b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab18db79475cdbd6490f33a970a64d71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#aab18db79475cdbd6490f33a970a64d71">HFRegisterViewForWindowAppearanceChanges</a> (NSView *view, SEL notificationSEL, BOOL appToo)</td></tr>
<tr class="separator:aab18db79475cdbd6490f33a970a64d71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1a3bb72a6760c6488bd9223be25d789"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#ac1a3bb72a6760c6488bd9223be25d789">HFUnregisterViewForWindowAppearanceChanges</a> (NSView *view, BOOL appToo)</td></tr>
<tr class="separator:ac1a3bb72a6760c6488bd9223be25d789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a559dddb38ff414cfacf5021529f3c18c"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#a559dddb38ff414cfacf5021529f3c18c">HFDescribeByteCount</a> (unsigned long long count)</td></tr>
<tr class="separator:a559dddb38ff414cfacf5021529f3c18c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bc1e8785697a055602a93858f081758"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#a3bc1e8785697a055602a93858f081758">HFStartTiming</a> (const char *name)</td></tr>
<tr class="separator:a3bc1e8785697a055602a93858f081758"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92ef6ce654b87c024d9818c3eb32b310"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_h_f_functions_8h.html#a92ef6ce654b87c024d9818c3eb32b310">HFStopTiming</a> (void)</td></tr>
<tr class="separator:a92ef6ce654b87c024d9818c3eb32b310"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ab08435c6a01cfe5cd77158388f22167f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab08435c6a01cfe5cd77158388f22167f">&sect;&nbsp;</a></span>HFDEFAULT_FONT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HFDEFAULT_FONT&#160;&#160;&#160;(@&quot;Monaco&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="afe1c300d17bd4eee18b785b5a57296ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe1c300d17bd4eee18b785b5a57296ac">&sect;&nbsp;</a></span>HFDEFAULT_FONTSIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HFDEFAULT_FONTSIZE&#160;&#160;&#160;((CGFloat)10.)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aae371535050d473bf449536855db6af4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae371535050d473bf449536855db6af4">&sect;&nbsp;</a></span>HFZeroRange</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HFZeroRange&#160;&#160;&#160;(<a class="el" href="struct_h_f_range.html">HFRange</a>){0, 0}</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a925eaf1edd5e195cc196cc300c13276c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a925eaf1edd5e195cc196cc300c13276c">&sect;&nbsp;</a></span>HFStringEncodingIsSupersetOfASCII()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL HFStringEncodingIsSupersetOfASCII </td>
          <td>(</td>
          <td class="paramtype">NSStringEncoding&#160;</td>
          <td class="paramname"><em>encoding</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns YES if the given string encoding is a superset of ASCII. </p>

</div>
</div>
<a id="af701c91f3cf2fe151c68e239a40a79a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af701c91f3cf2fe151c68e239a40a79a5">&sect;&nbsp;</a></span>HFStringEncodingCharacterLength()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t HFStringEncodingCharacterLength </td>
          <td>(</td>
          <td class="paramtype">NSStringEncoding&#160;</td>
          <td class="paramname"><em>encoding</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the "granularity" of an encoding, in bytes. ASCII is 1, UTF-16 is 2, etc. Variable width encodings return the smallest (e.g. Shift-JIS returns 1). </p>

</div>
</div>
<a id="aa1e2340e72af073b5120505b4b0a291b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1e2340e72af073b5120505b4b0a291b">&sect;&nbsp;</a></span>HFDrawShadow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HFDrawShadow </td>
          <td>(</td>
          <td class="paramtype">CGContextRef&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NSRect&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CGFloat&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NSRectEdge&#160;</td>
          <td class="paramname"><em>rectEdge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>active</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NSRect&#160;</td>
          <td class="paramname"><em>clip</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Draws a shadow. </p>

</div>
</div>
<a id="aab18db79475cdbd6490f33a970a64d71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab18db79475cdbd6490f33a970a64d71">&sect;&nbsp;</a></span>HFRegisterViewForWindowAppearanceChanges()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HFRegisterViewForWindowAppearanceChanges </td>
          <td>(</td>
          <td class="paramtype">NSView *&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SEL&#160;</td>
          <td class="paramname"><em>notificationSEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>appToo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Registers a view to have the given notificationSEL invoked (taking the NSNotification object) when the window becomes or loses key. If appToo is YES, this also registers with NSApplication for Activate and Deactivate methods. </p>

</div>
</div>
<a id="ac1a3bb72a6760c6488bd9223be25d789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1a3bb72a6760c6488bd9223be25d789">&sect;&nbsp;</a></span>HFUnregisterViewForWindowAppearanceChanges()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HFUnregisterViewForWindowAppearanceChanges </td>
          <td>(</td>
          <td class="paramtype">NSView *&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>appToo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Unregisters a view to have the given notificationSEL invoked when the window becomes or loses key. If appToo is YES, this also unregisters with NSApplication. </p>

</div>
</div>
<a id="a559dddb38ff414cfacf5021529f3c18c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a559dddb38ff414cfacf5021529f3c18c">&sect;&nbsp;</a></span>HFDescribeByteCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NSString* HFDescribeByteCount </td>
          <td>(</td>
          <td class="paramtype">unsigned long long&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a description of the given byte count (e.g. "24 kilobytes") </p>

</div>
</div>
<a id="a3bc1e8785697a055602a93858f081758"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bc1e8785697a055602a93858f081758">&sect;&nbsp;</a></span>HFStartTiming()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HFStartTiming </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a92ef6ce654b87c024d9818c3eb32b310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92ef6ce654b87c024d9818c3eb32b310">&sect;&nbsp;</a></span>HFStopTiming()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HFStopTiming </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
